package com.balabala.gym_system.api;

import com.balabala.gym_system.pojo.vo.CoachVo;
import com.balabala.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Author:zl
 * Date:2023/5/5 21:02
 */
@FeignClient(value = "gym-system-service",contextId = "coachFeign")
public interface CoachFeignClient {
//根据教练id查找信息
    @GetMapping("/admin/coach/findById/{id}")
    public Result<CoachVo> getCoachById(@PathVariable("id") Long id);
}
